Split persistent state on parts by shards#1100
Open
SmaGMan wants to merge 12 commits into
Open
Conversation
…plitted persistent state import
🧪 Network TestsTo run network tests for this PR, use: gh workflow run network-tests.yml -f pr_number=1100Available test options:
Test types: Results will be posted as workflow runs in the Actions tab. |
bb2c98d to
96c829f
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1100 +/- ##
==========================================
+ Coverage 60.22% 60.35% +0.12%
==========================================
Files 473 474 +1
Lines 80541 82035 +1494
Branches 80541 82035 +1494
==========================================
+ Hits 48507 49513 +1006
- Misses 29712 30086 +374
- Partials 2322 2436 +114 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
96c829f to
849cca2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces the split of the persistent state on to
2^persistent_state_split_depth filesby shards. It supports write/import from splitted files, exchange via RPC, backward compatibility with a single-file persistent state.It writes persistent state metadata file indicating the split config even when no split required.
Final persistent state bundle will be:
If state does not contain accounts in some shard, no part file is generated for that shard.
Crash recovery:
Pull Request Checklist
NODE CONFIGURATION MODEL CHANGES
Added optional param. Default = 0
BLOCKCHAIN CONFIGURATION MODEL CHANGES
[None]
COMPATIBILITY
Fully compatible. Existing single-file persistent state treated as created with
persistent_state_split_depth = 0.SPECIAL DEPLOYMENT ACTIONS
[Not Required]
PERFORMANCE IMPACT
State 10kk.
TESTS
Unit Tests
Covered by:
Network Tests
[No coverage]
Manual Tests
Manual tests used
devnet5